@charset "utf-8";
@import "config";
$height: 360px;
.carousel{
  height: $height; position: relative;
  .carousel-wrapper{
    height: $height;
    overflow: hidden;
    position: relative;
    .carousel-slide{ height: $height; }
    &.fade{
      //淡入淡出过度
      .carousel-slide{
        &.active{ }
      }
    }
  }
  //点点控制
  .carousel-control{
    z-index: 80;
    text-align: center;
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 100%;
    li{ display: inline-block; margin: 0 3px; height: 4px; line-height: 4px; background: #1DC116; width: 20px; cursor: pointer;
      &.active{ background: #f00; }
    }
  }
  //前后控制
  .carousel-direction{
    z-index: 80;
    position: absolute;
    left: 0;
    top: 50%;
    height: 50px;
    margin-top: -25px;
    width: 100%;
    li{
      cursor: pointer;
      width: 30px;
      height: 30px;
      position: absolute;
      top: 0;
      border: 3px solid transparent;
      border-top-color: #b43d3d;
      border-right-color: #b43d3d;
      &.carousel-prev{
        left: 10%;
        transform: rotate(-135deg);
      }
      &.carousel-next{
        right: 10%;
        transform: rotate(45deg);
      }
      &:hover{ @include opacity(60) }
      &.disable{ cursor: not-allowed;border-top-color: #ddd; border-right-color: #ddd; }
    }
  }
}